package com.wt.admin.controller.ai;


import com.aizuda.easy.security.domain.Rep;
import com.wt.admin.domain.dto.ai.MCPDTO;
import com.wt.admin.domain.vo.ai.MCPVO;
import com.wt.admin.service.ai.MCPService;
import com.wt.admin.util.PageUtil;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("mcp")
public class MCPController {

    @Resource
    private MCPService mcpService;

    @PostMapping("list")
    public Rep<PageUtil.PageVO<MCPVO>> list(@RequestBody PageUtil.PageDTO<MCPDTO> data) {
        return Rep.ok(mcpService.list(data));
    }

    @PostMapping("edit")
    public Rep<MCPVO> edit(@RequestBody MCPDTO data) {
        return Rep.ok(mcpService.edit(data));
    }

    @PostMapping("del")
    public Rep<MCPVO> del(@RequestBody MCPDTO data) {
        return Rep.ok(mcpService.del(data));
    }


}
